import React,{useEffect} from 'react';
import useInject from '../../../hooks/useInject';
import {observer} from 'mobx-react-lite';
import style from './home.module.css';
import moment from 'moment';

const Home:React.FC = observer(function(){
    // const {Vote} = useInject();
    // useEffect(() => {
    //     Vote.getList();
    // },[])
    console.log(moment("20111031", "YYYYMMDD").fromNow())
    return <div>
        <h2>热门投票</h2>
        {/* {
            Vote.voteList.map((item:any) => {
                // return <div className={`${style.list} ${style.end }`}>

                // </div>
            })
        } */}
    </div>
})

export default Home